﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="CourseAssign.aspx.cs" Inherits="UniversityManagementSystem.UI.CourseAssign" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <link href="../Styles/fontStyleSheet.css" rel="stylesheet" type="text/css" />
</asp:Content>


<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
    <div class="fontStyle">
        <asp:Label ID="Label1" runat="server" Text="Department" 
            CssClass="labelAlignment"></asp:Label>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <asp:DropDownList ID="departmentDropDownList" runat="server" 
                onselectedindexchanged="departmentDropDownList_SelectedIndexChanged" 
                AutoPostBack="True" CssClass="comboBoxAlignment">
            </asp:DropDownList>
            <br />
            <br />
            <asp:UpdatePanel ID="UpdatePanel2" runat="server">
            <ContentTemplate>
        <asp:Label ID="Label2" runat="server" Text="Teacher" CssClass="labelAlignment"></asp:Label>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <asp:DropDownList ID="teacherDropDownList" runat="server" 
            Height="26px" AutoPostBack="True" 
            onselectedindexchanged="teacherDropDownList_SelectedIndexChanged" 
                    CssClass="comboBoxAlignment">
            </asp:DropDownList>
            <br />
            <br />
                        </ContentTemplate>
            <Triggers>
                <asp:AsyncPostBackTrigger ControlID="departmentDropDownList" EventName="SelectedIndexChanged"/>
            </Triggers>
            </asp:UpdatePanel>
            <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
        <asp:Label ID="Label3" runat="server" Text="Assigned Credit" 
                CssClass="labelAlignment"></asp:Label>
            &nbsp;&nbsp;&nbsp;
            <asp:TextBox ID="assignedCreditTextBox" runat="server" 
            ReadOnly="True" CssClass="textBoxAlignment"></asp:TextBox>
            <br />
            <br />
        <asp:Label ID="Label4" runat="server" Text="Remaining Credit" 
                CssClass="labelAlignment"></asp:Label>
            &nbsp;
            <asp:TextBox ID="remainingCreditTextBox" runat="server" 
            ReadOnly="True" CssClass="textBoxAlignment"></asp:TextBox>
            <br />
            <br />
            </ContentTemplate>
            <Triggers>
                <asp:AsyncPostBackTrigger ControlID="teacherDropDownList" EventName="SelectedIndexChanged"/>
            </Triggers>
        </asp:UpdatePanel>
        <asp:UpdatePanel ID="UpdatePanel3" runat="server">
        <ContentTemplate>
        <asp:Label ID="Label5" runat="server" Text="Course Title" CssClass="labelAlignment"></asp:Label>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <asp:DropDownList ID="courseTitleDropDownList" runat="server" AutoPostBack="True" 
            onselectedindexchanged="courseTitleDropDownList_SelectedIndexChanged" 
                CssClass="comboBoxAlignment">
            </asp:DropDownList>
            <br />
            <br />
            </ContentTemplate>
            <Triggers>
                <asp:AsyncPostBackTrigger ControlID="departmentDropDownList" EventName="SelectedIndexChanged"/>
            </Triggers>
            </asp:UpdatePanel>
        <asp:UpdatePanel ID="UpdatePanel4" runat="server">
        <ContentTemplate>
        <asp:Label ID="Label6" runat="server" Text="Name" CssClass="labelAlignment"></asp:Label>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <asp:TextBox ID="courseNameTextBox" runat="server" 
            ReadOnly="True" CssClass="textBoxAlignment"></asp:TextBox>
            <br />
            <br />

        <asp:Label ID="Label7" runat="server" Text="Credit" CssClass="labelAlignment"></asp:Label>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <asp:TextBox ID="courseCreditTextBox" runat="server" 
            ReadOnly="True" CssClass="textBoxAlignment"></asp:TextBox>
            <br />
            <br />
            </ContentTemplate>
            <Triggers>
                <asp:AsyncPostBackTrigger ControlID="courseTitleDropDownList" EventName="SelectedIndexChanged"/>
            </Triggers>
            </asp:UpdatePanel>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;
            <asp:Button ID="assignButton" runat="server" Text="Assign" 
            onclick="assignButton_Click" CssClass="button" Width="100px" />
            <br />
        <br />

            <asp:Label ID="messageLabel" runat="server" Text=""></asp:Label>
    </div>
</asp:Content>
